package com.spddr.pmos.jpa;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.seqdata.jpa.JpaString;

@Entity
@Table(name = "metric")
public class Metric extends JpaString {
	private static final long serialVersionUID = 1L;

	private String units;
	private String chsUnits;
	private Integer orderNo;

	public Metric() {
		super();
	}

	public Metric(String id) {
		super(id);
	}

	public Metric(String id, String name) {
		super(id, name);
	}

	@Column(name = "units", length = 20)
	public String getUnits() {
		return this.units;
	}

	public void setUnits(String units) {
		this.units = units;
	}

	@Column(name = "chs_units", length = 20)
	public String getChsUnits() {
		return this.chsUnits;
	}

	public void setChsUnits(String chsUnits) {
		this.chsUnits = chsUnits;
	}

	@Column(name = "order_no")
	public Integer getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
}